#include <iostream>

using namespace std;

int main()
{
	int n;
	while(cin>>n)
	{
		for (int x=0; x<=100; x++)
		{
			for (int y=0; y<=100; y++)
			{
				if (14*x+8*y <= 3*n-100)
				{
					int z = 100 - x - y;
					cout<<"x="<<x<<","<<"y="<<y<<","<<"z="<<z<<endl;
				}
			}
		}
	}

	return 1;
}